package com.qfedu.meidijiaju.controller;

import com.qfedu.meidijiaju.service.GohomeService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "回家模块")
@RestController
@RequestMapping("/gohome")
public class GohomeController {
    @Autowired
    private GohomeService gohomeService;
    @GetMapping("/allGohome")
    public List allGohome(){
        return gohomeService.allGohome();
    }
}
